#include <iostream>
#include <set>
#include <string>
using namespace std;

int main()
{
    //创建空set容器
    std::set<std::string> myset;
    //空set容器不存储任何元素
    cout << "1.myset size = " << myset.size() << endl;
    //向myset容器中插入新元素
    myset.insert("a");
    myset.insert("b");
    myset.insert("c");
    cout << "2.myset size = " << myset.size() << endl;
    //利用双向迭代器，遍历myset
    for (auto iter = myset.begin(); iter != myset.end(); ++iter)
    {
        cout << *iter << endl;
    }
    return 0;
}